package com.mechanism;

public class yield implements Runnable {

    @Override
    public void run() {
        System.out.println("1");
        Thread.yield();
        System.out.println("2");
    }

    public static void main(String[] args) {
        yield y=new yield();
        y.run();
    }
}
